<?php
class ErrorsController extends AppController {
    public $name = 'Errors';

    public function beforeFilter() {
        parent::beforeFilter();
        $this->Auth->allow('index','error404','errorsecurity');
    }
    
    
    public function index() {
        $this->error404();
    }

    public function error404() {
        
        $this->view = 'error404';
        $this->layout = 'default';
    }
    public function errorsecurity() {
        
        $this->view = 'errorsecurity';
        $this->layout = 'default';
    }
}